package com.pig4cloud.pig.propertyroom.feign;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.pig4cloud.pig.common.core.constant.ServiceNameConstants;
import com.pig4cloud.pig.common.core.util.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(contextId = "remoteUnitService", value = ServiceNameConstants.UNIT_SERVICE)
public interface RemoteUnitService {
	@GetMapping("/unit/getUnit")
	public R getUnit(@RequestParam("buildingId") Long buildingId);
}
